//
//  OneItemModel.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/8/3.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class OneItemModel: NSObject {
    var gc_parent_id = "-999"
    var gc_image = "-999"
    var gc_description = "-999"
    var gc_show = "-999"
    var gc_recomm = "-999"
    var type_name = "-999"
    var gc_keywords = "-999"
    var gc_name = "-999"
    var type_id = "-999"
    var gc_title = "-999"
    var gc_id = "-999"
    var gc_virtual = "-999"
    var gc_sort = "-999"
    
    
    init(dic : [String : AnyObject]) {
        super.init()
        
        setValuesForKeys(dic)
        
    }
    
    
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
        
    }
    
    
    //在swift中想要打印对象要以下重写属性
    override var description: String{
        let keys = ["gc_parent_id","gc_image","gc_description","gc_show","gc_recomm","type_name","gc_keywords","gc_name","type_id","gc_title","gc_id","gc_virtual","gc_sort"]
        let dic = dictionaryWithValues(forKeys: keys)
        return "\(dic)"
    }

}
